package com.demo.ssy.serviceImp;

import java.util.ArrayList;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.demo.ssy.beans.MobiUserBean;
import com.demo.ssy.beans.User;
import com.demo.ssy.dao.UserDao;
import com.demo.ssy.service.UserService;

/**
 * 用户实现层
 * 
 * @author sunsiyuan
 * 
 */
@Service("userService")
public class UserServiceImpl implements UserService {

	@Resource
	private UserDao dao;

	@Override
	public int insertUser(MobiUserBean mobiUserBean) {
		// TODO Auto-generated method stub
		return dao.insert(mobiUserBean);
	}

	@Override
	public int getUserByTel(String account) {
		// TODO Auto-generated method stub
		return dao.getUserByTel(account);
	}

	@Override
	public ArrayList<User> getAllUser() {
		// TODO Auto-generated method stub
		return dao.getUsers();
	}

}
